﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Abp.Domain.Entities.Auditing;

namespace FwProject.ShoppingMall.Product
{
    /// <summary>
    /// 属性关联产品类型
    /// </summary>
    [Table("ProductType_Attr")]
    public class ProductType_Attr: FullAuditedEntity<Guid>
    {
        public const int StringLength = 200;
        /// <summary>
        /// 属性名称
        /// </summary>
        [Required]
        [StringLength(StringLength)]
        public string AttrName { get; set; }
        /// <summary>
        /// 产品分类id
        /// </summary>
        public Guid ProductTypeid { get; set; }
        /// <summary>
        /// 数组形式逗号隔开红色，白色，绿色
        /// </summary>
        [Required]
        public string Attrvalue { get; set; }
        /// <summary>
        /// 单位（中文手动输入）
        /// </summary>
        [Required]
        [StringLength(StringLength)]
        public string Unit { get; set; }
        /// <summary>
        /// 是否可以查询
        /// </summary>
        public bool Issearch { get; set; } = true;

    }
}
